﻿<%@ Page Language="vb" AutoEventWireup="false" MasterPageFile="~/Master_Page/Master_Popup.Master" CodeBehind="CauseOfDelay.aspx.vb" Inherits="I_PORT.CauseOfDelay" 
    title="IRPC INTELLIGENT PORT SERVICE" %>
    
 <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
  <asp:UpdatePanel ID="UpdatePanelDelayPopup" runat="server" UpdateMode="Conditional">
    <ContentTemplate>
       <table width="100%" border="0" cellpadding="2" cellspacing="0" >
         <tr>
                   <td style="width:20%;" align="right"><asp:Label ID="Label1" runat="server" Text="วันที่เริ่มต้น :" SkinID="lbtxt" ></asp:Label>&nbsp;</td>
                   <td align="left">
                       <asp:TextBox ID="txtStart" runat="server" Width="80px" onkeypress="return false;" ></asp:TextBox>&nbsp;<asp:ImageButton ID="ImgStart" runat="server" ImageUrl="~/Image/calendar.png" />&nbsp;<asp:Label ID="Label2" runat="server" Text="เวลา" SkinID="lbtxt" ></asp:Label>&nbsp;<asp:TextBox ID="txtTimeStart" runat="server" Width="40px"></asp:TextBox>
                  <asp:CalendarExtender ID="CalendarExtender3" runat="server" 
                           TargetControlID="txtStart" Format="dd/MM/yy" 
                           PopupButtonID="ImgStart" Enabled="True"></asp:CalendarExtender>
                           <asp:MaskedEditExtender ID="MaskedEditExtender3" runat="server" TargetControlID="txtTimeStart"
                  Mask="99:99" MaskType="Time" AcceptNegative="Left" CultureAMPMPlaceholder="" 
                           CultureCurrencySymbolPlaceholder="" CultureDateFormat="" 
                           CultureDatePlaceholder="" CultureDecimalPlaceholder="" 
                           CultureThousandsPlaceholder="" CultureTimePlaceholder="" Enabled="True" ></asp:MaskedEditExtender>
                   </td>
           </tr>
           <tr>
                   <td style="width:20%;" align="right"><asp:Label ID="Label3" runat="server" Text="วันที่สิ้นสุด :" SkinID="lbtxt" ></asp:Label>&nbsp;</td>
                   <td align="left">
                       <asp:TextBox ID="txtEnd" runat="server" Width="80px" onkeypress="return false;" ></asp:TextBox>&nbsp;<asp:ImageButton ID="ImgEnd" runat="server" ImageUrl="~/Image/calendar.png" />&nbsp;<asp:Label ID="Label4" runat="server" Text="เวลา" SkinID="lbtxt" ></asp:Label>&nbsp;<asp:TextBox ID="txtTimeEnd" runat="server" Width="40px"></asp:TextBox>
                  <asp:CalendarExtender ID="CalendarExtender1" runat="server" 
                           TargetControlID="txtEnd" Format="dd/MM/yy" 
                           PopupButtonID="ImgEnd" Enabled="True"></asp:CalendarExtender>
                           <asp:MaskedEditExtender ID="MaskedEditExtenderTimeEnd" runat="server" TargetControlID="txtTimeEnd"
                  Mask="99:99" MaskType="Time" AcceptNegative="Left"  Enabled="True" ></asp:MaskedEditExtender>
                   </td>
           </tr>
           <tr>
                   <td style="width:20%;" align="right"><asp:Label ID="Label5" runat="server" Text="Delay :" SkinID="lbtxt" ></asp:Label>&nbsp;</td>
                   <td align="left">
                      <asp:DropDownList ID="ddlDelay" runat="server" SkinID="ddl" >
                       </asp:DropDownList>
<%--                       <asp:TextBox ID="txtCauseOfDelay" runat="server" Width="350px" ></asp:TextBox>
                        <asp:AutoCompleteExtender  runat="server" ID="AutoCompleteExtender1" BehaviorID="AutoCompleteEx2" CompletionInterval="50"
                     TargetControlID="txtCauseOfDelay" ServicePath="../WebService/AutoComplete_IPORT.asmx" MinimumPrefixLength="1" 
                    ServiceMethod="CauseOfDelay" CompletionListCssClass="autocomplete_completionListElement"
                CompletionListItemCssClass="autocomplete_listItem"
                CompletionListHighlightedItemCssClass="autocomplete_highlightedListItem" >
                <Animations>
                    <OnShow>
                        <Sequence>
                            <OpacityAction Opacity="0" />
                            <HideAction Visible="true" />
                            
                            <ScriptAction Script="
                                // Cache the size and setup the initial size
                                var behavior = $find('AutoCompleteEx2');
                                if (!behavior._height) {
                                    var target = behavior.get_completionList();
                                    behavior._height = target.offsetHeight - 2;
                                    target.style.height = '0px';
                                }" />
                            <Parallel Duration=".3">
                                <FadeIn />
                                <Length PropertyKey="height" StartValue="0" EndValueScript="$find('AutoCompleteEx2')._height" />
                            </Parallel>
                        </Sequence>
                    </OnShow>
                    <OnHide>
                        <Parallel Duration=".3">
                            <FadeOut />
                            <Length PropertyKey="height" StartValueScript="$find('AutoCompleteEx2')._height" EndValue="0" />
                        </Parallel>
                    </OnHide>
                </Animations>
                 </asp:AutoCompleteExtender>--%>
                   </td>
           </tr>
           <%--<tr>
                   <td style="width:20%;" align="right"><asp:Label ID="Label7" runat="server" Text="Delay :" SkinID="lbtxt" ></asp:Label>&nbsp;</td>
                   <td align="left">
                       <asp:TextBox ID="txtDelayTime" runat="server" Width="40px"></asp:TextBox>
                           <asp:MaskedEditExtender ID="ExtenderTimeEnd4" runat="server" TargetControlID="txtDelayTime"
                  Mask="99:99" MaskType="Time" AcceptNegative="Left"  Enabled="True" ></asp:MaskedEditExtender>
                   </td>
           </tr>--%>
           <tr>
                   <td style="width:20%;" align="right">&nbsp;</td>
                   <td align="left">
                       <asp:Button ID="btnSave" runat="server" CssClass="ButtonStyle" Text="บันทึก" />
                       <asp:Button ID="btnClear" runat="server" CssClass="ButtonStyle" Text="ปิด" />
                   </td>
           </tr>
       </table>
    </ContentTemplate>
  </asp:UpdatePanel>
</asp:Content>
